package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author rookie001
 * @creat 2023-05-02-10:26
 */
@Mapper
public interface OrderDetailMapper {
    //批量插入订单明细数据
    void insertBatch(List<OrderDetail> orderDetails);
    //订单明细查询
    @Select("select * from order_detail where order_id=#{orderId}")
    List<OrderDetail> getByorderId(Long orderId);
}
